package com.example.liuhb.broadcastreceiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

/**
 * Created by liu.hb on 2018/7/6.
 */
//自定义广播
public class MyBroadcastReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        Toast.makeText(context,"发送自定义广播",Toast.LENGTH_SHORT).show();
        System.out.println("------发送自定义广播----------");
    }
}
